﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace NetWebControl.ControlTest.OA
{
    public partial class higher : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            this.TreeListView1.AttrDbSelect.TableName = "Users";
            this.TreeListView1.AttrDbSelect.KeyField = "Users_Id";
            this.TreeListView1.AttrDbSelect.StrWhere = string.Format("Users_Id in (select Users_Id from UsersHigher where Higher_Users_Id=(select Roles_Id from Roles_Users where Users_Id={0}))",7);

            this.TreeListView1.AttrStatus.MaxLevelNumber = 1;
            //this.TreeListView1.AttrDbSelect.FirstValue = "1";
            //this.TreeListView1.AttrDbSelect.ParentName = "1";
            
        }
    }
}